<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>sushu</title>
    <script>
    //遍历1~100之间的数
    for(var i=1;i<=100;i++){
        if(i==1){
            continue;
        }else{
            var flag=true;
            for(var a=2;a<i;a++){
                if(i%a==0){
                    flag=false;
                }
            }
        }
        if(flag){
            document.write("100以内的素数有："+i+'</p>')
        }
        }
    
    </script>
</head>
<body>
    
</body>
</html>